package forms

type PasswordLoginFrom struct {
	Account   string `json:"account" binding:"required,account"` //用户登录账号字段
	Password  string `json:"password" binding:"required,min=3,max=20"`
	Captcha   string `json:"captcha" binding:"required,min=5,max=5"`
	CaptchaId string `json:"captcha_id" bingding:"required"`
}
type EmailLoginFrom struct {
	Email string `json:"email" binding:"required"` //用户登录账号字段
	VCode string `json:"VCode" binding:"required"`
}
type RegisterFrom struct {
	Mobile     string `json:"mobile" binding:"required,mobile"`
	Password   string `json:"password" binding:"required,min=3,max=20"`
	EqPassword string `json:"eq_password" binding:"required,eqfield=Password"`
	UserName   string `json:"user_name" binding:"required,min=1,max=10"`
	Identify   string `json:"Identify" binding:"required,identify"`
}
type UpdatePassword struct {
	UserId   int    `json:"user_id" binding:"required"`
	Password string `json:"password" binding:"required,min=3,max=20"`
}

type UpdateUserForm struct {
	UserId   int    `json:"user_id" binding:"required"`
	UserName string `json:"user_name" binding:"required,min=1,max=10"`
	Phone    string `json:"phone" binding:"required,mobile"`
}
type CreateUserByEmail struct {
	Email    string `json:"email" binding:"required"`
	Password string `json:"password" binding:"required,min=3,max=20"`
	RoleId   int    `json:"role_id" binding:"required"`
	Identify string `json:"Identify" binding:"required,identify"`
	VCode    string `json:"VCode" binding:"required"`
}

type CreateUserByPhone struct {
	VCode    string `json:"VCode" binding:"required"`
	Phone    string `json:"phone" binding:"required"`
	Password string `json:"password" binding:"required,min=3,max=20"`
	RoleId   int    `json:"role_id" binding:"required"`
	Identify string `json:"Identify" binding:"required,identify"`
}
